_p_n_a_m_e Specifies a single-valued fog parameter. GGGGLLLL____FFFFOOOOGGGG____MMMMOOOODDDDEEEE,
GGGGLLLL____FFFFOOOOGGGG____DDDDEEEENNNNSSSSIIIITTTTYYYY, GGGGLLLL____FFFFOOOOGGGG____SSSSTTTTAAAARRRRTTTT, GGGGLLLL____FFFFOOOOGGGG____EEEENNNNDDDD, and GGGGLLLL____FFFFOOOOGGGG____IIIINNNNDDDDEEEEXXXX are
accepted.
_p_a_r_a_m Specifies the value that _p_n_a_m_e will be set to.
Specifies a fog parameter. GGGGLLLL____FFFFOOOOGGGG____MMMMOOOODDDDEEEE, GGGGLLLL____FFFFOOOOGGGG____DDDDEEEENNNNSSSSIIIITTTTYYYY,
GGGGLLLL____FFFFOOOOGGGG____SSSSTTTTAAAARRRRTTTT, GGGGLLLL____FFFFOOOOGGGG____EEEENNNNDDDD, GGGGLLLL____FFFFOOOOGGGG____IIIINNNNDDDDEEEEXXXX, GGGGLLLL____FFFFOOOOGGGG____CCCCOOOOLLLLOOOORRRR, and
GGGGLLLL____FFFFOOOOGGGG____OOOOFFFFFFFFSSSSEEEETTTT____VVVVAAAALLLLUUUUEEEE____SSSSGGGGIIIIXXXX are accepted.
_p_a_r_a_m_s
Specifies the value or values to be assigned to _p_n_a_m_e. GGGGLLLL____FFFFOOOOGGGG____CCCCOOOOLLLLOOOORRRR
requires an array of four values to specify the RGBA components of
the fog color. GGGGLLLL____FFFFOOOOGGGG____OOOOFFFFFFFFSSSSEEEETTTT____VVVVAAAALLLLUUUUEEEE____SSSSGGGGIIIIXXXX requires an array of four
values to specify a reference point in eye-space coordinates, and a
Z offset in eye-space coordinates. All other parameters accept an
array containing only a single value.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Fog is initially disabled. While enabled, fog affects rasterized
geometry, bitmaps, and pixel blocks, but not buffer clear operations. To
enable and disable fog, call ffffggggllllEEEEnnnnaaaabbbblllleeee and ffffggggllllDDDDiiiissssaaaabbbblllleeee with argument
GGGGLLLL____FFFFOOOOGGGG.
ffffggggllllFFFFoooogggg assigns the value or values in _p_a_r_a_m_s to the fog parameter
specified by _p_n_a_m_e. The following values are accepted for _p_n_a_m_e:
GGGGLLLL____FFFFOOOOGGGG____MMMMOOOODDDDEEEE _p_a_r_a_m_s is a single integer or floating-point value
that specifies the equation to be used to compute the
fog blend factor, f. Four symbolic constants are
accepted: GGGGLLLL____LLLLIIIINNNNEEEEAAAARRRR, GGGGLLLL____EEEEXXXXPPPP, GGGGLLLL____EEEEXXXXPPPP2222, and
reference point specified by the first three values in _p_a_r_a_m_s when _p_n_a_m_e
is GGGGLLLL____FFFFOOOOGGGG____OOOOFFFFFFFFSSSSEEEETTTT____VVVVAAAALLLLUUUUEEEE____SSSSGGGGIIIIXXXX. For best fog accuracy in perspective
projections, this reference point must be close to the objects being
fogged.
In parallel projections the window-coordinate Z offset does not vary with
position in the Z range, so the reference point is ignored.
GGGGLLLL____FFFFOOOOGGGG____FFFFUUUUNNNNCCCC____SSSSGGGGIIIISSSS is part of the SSSSGGGGIIIISSSS____ffffoooogggg____ffffuuuunnnncccc extension, not part of the
core GL command set. If GGGGLLLL____SSSSGGGGIIIISSSS____ffffoooogggg____ffffuuuunnnncccc is included in the string
returned by ffffggggllllGGGGeeeettttSSSSttttrrrriiiinnnngggg when called with argument GGGGLLLL____EEEEXXXXTTTTEEEENNNNSSSSIIIIOOOONNNNSSSS,
extension SSSSGGGGIIIISSSS____ffffoooogggg____ffffuuuunnnncccc is supported by the connection. See ffffggggllllIIIInnnnttttrrrroooo for
more information about using extensions.
GGGGLLLL____FFFFOOOOGGGG____OOOOFFFFFFFFSSSSEEEETTTT____VVVVAAAALLLLUUUUEEEE____SSSSGGGGIIIIXXXX is part of the SSSSGGGGIIIIXXXX____ffffoooogggg____ooooffffffffsssseeeetttt extension, and
similar considerations apply.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _p_n_a_m_e is not an accepted value, or if
_p_n_a_m_e is GGGGLLLL____FFFFOOOOGGGG____MMMMOOOODDDDEEEE and _p_a_r_a_m_s is not an accepted value.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if _p_n_a_m_e is GGGGLLLL____FFFFOOOOGGGG____DDDDEEEENNNNSSSSIIIITTTTYYYY and _p_a_r_a_m_s is
negative.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllFFFFoooogggg is executed between the
execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ffffggggllllEEEEnnnndddd.